#!/bin/sh
#this script is called from /root/.xinitrc

[ "`whoami`" != "root" ] && exec sudo -A ${0} ${@}

PS="`busybox ps`"
echo "$PS" | grep -q  'sh /usr/local/pup_event/pup_event_frontend_d' || {
	exec /usr/local/pup_event/pup_event_frontend_d $@
}

echo "${0##*/} already running..."

###END###
